﻿@namespace BlazorComponent
@inherits BGroupItem<ItemGroupBase>

@if (IsBooted || IsEager)
{
    <Transition Name="@ComputedTransition"
                OnBeforeEnter="HandleOnBefore"
                OnAfterEnter="HandleOnAfter"
                OnBeforeLeave="HandleOnBefore"
                OnAfterLeave="HandleOnAfter"
                OnEnter="HandleOnEnter">
        <ShowTransitionElement Value="@InternalIsActive"
                               class="@CssProvider.GetClass()"
                               style="@CssProvider.GetStyle()"
                               id="@Id"
                               ReferenceCaptureAction="_ => Ref = _"
                               Tag="@Tag"
                               @attributes="@Attributes">
            @RenderPart(typeof(BWindowItemDefaultSlot<>))
        </ShowTransitionElement>
    </Transition>
}
